﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs.WeeklyReport
{
    /// <summary>
    /// 周报信息实体
    /// </summary>
    [Table("WeeklyInfo")]
    public class WeeklyInfo : BaseEntity
    {
        /// <summary>
        /// 周报信息编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int WeeklyInfoId { get; set; }
        /// <summary>
        /// 工作内容简介
        /// </summary>
        public int JobBrief { get; set; }

        #region 导航属性
        /// <summary>
        /// 周数信息编号
        /// </summary>
        public int weekInfoId { get; set; }
        public virtual WeekInfo weekInfo { get; set; }

        /// <summary>
        /// 用户信息编号
        /// </summary>
        public int UserInfoId { get; set; }
        public virtual UserInfo UserInfo { get; set; }
        /// <summary>
        /// 具体事项
        /// </summary>
        public virtual List<WorkItems> WorkItems { get; set; }
        #endregion
    }



}
